package com.suse.warmstill.service;

import com.suse.warmstill.common.model.CallResult;
import com.suse.warmstill.common.model.ListPageModel;
import com.suse.warmstill.entity.ChatMsg;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suse.warmstill.vo.MessageIndexVo;
import com.suse.warmstill.vo.MessageInfo;
import com.suse.warmstill.vo.UserInfo;

/**
 * @author ADMIN
 * @description 针对表【chat_msg】的数据库操作Service
 * @createDate 2023-02-12 05:23:07
 */
public interface ChatMsgService extends IService<ChatMsg> {


    CallResult<ListPageModel<MessageIndexVo>> getUnRead(Long accepterId);

    CallResult<ListPageModel<ChatMsg>> getHistoryMessage(long acceptId, int currentPage, int pageSize);

    void sendMessage(Long acceptId, Long senderId, MessageInfo messageInfo);

    CallResult connect(int acceptId, int senderId);

    public void saveSessionUser(String session, UserInfo userInfo);

    public void deleteSessionUser(String session);

    //   CallResult<ListPageModel<ChatMsg>> getHistoryMessage(Long accepterId, int currentPage, int pageSize);
}
